package cn.com.nes.mybatis.agent.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 */
@TableName(value = "t_department")
@Data
public class Department implements Serializable {

    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 部门ID
     */
    @TableId(value = "departmentId")
    @TableField(value = "departmentId")
    private String departmentId;

    /**
     * 部门名称
     */
    @TableField(value = "departmentName")
    private String departmentName;

    /**
     * 上级节点ID
     */
    @TableField(value = "p_companyId")
    private String companyId;

    /**
     * 上级节点名称
     */
    @TableField(value = "p_companyName")
    private String companyName;

    /**
     * 所属公司ID
     */
    @TableField(value = "company_id")
    private String belongCompanyId;

    /**
     * 是否删除:1:表示删除，0:表示未删除
     */
    @TableField(value = "sfsc")
    private Integer deleted;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 创建人ID
     */
    @TableField(value = "gmt_create_id")
    private Long gmtCreateId;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    /**
     * 修改人ID
     */
    @TableField(value = "gmt_modified_id")
    private Long gmtModifiedId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}